var x1 >=0 ;
var x2 >=0 ;
var x3 >=0 ;
var x4 >=0 ;
var x5 >=0 ;
var x6 >=0 ;
var x7 >=0 ;
var x8 >=0 ;
var x9 >=0 ;
var x10 >=0 ;
var x11 >=0 ;
var x12 >=0 ;
maximize obj: 0.0  + 2.0 * x1   + 5.0 * x2   -4.0 * x3   -1.0 * x4   + 5.0 * x5   + 5.0 * x6 ;
c1: x7 = 15.0  + 8.0 * x1  -7.0 * x2  + 1.0 * x3  -7.0 * x4  -8.0 * x5  + 7.0 * x6 ;
c2: x8 = 10.0  -7.0 * x1  -2.0 * x2  -4.0 * x3  -8.0 * x4  + 2.0 * x5  + 6.0 * x6 ;
c3: x9 = 29.0  -10.0 * x1  -6.0 * x2  + 9.0 * x3  -9.0 * x4  + 4.0 * x5  -8.0 * x6 ;
c4: x10 = 22.0  -7.0 * x1  + 3.0 * x2  -9.0 * x3  + 0.0 * x4  -3.0 * x5  -8.0 * x6 ;
c5: x11 = 17.0  -10.0 * x1  + 4.0 * x2  + 8.0 * x3  -7.0 * x4  -5.0 * x5  + 6.0 * x6 ;
c6: x12 = 32.0  -1.0 * x1  -4.0 * x2  -4.0 * x3  -3.0 * x4  -9.0 * x5  -6.0 * x6 ;
solve; 
display 0.0  + 2.0 * x1   + 5.0 * x2   -4.0 * x3   -1.0 * x4   + 5.0 * x5   + 5.0 * x6 ;
 
 end; 
